import request from '@/utils/request'

// 获取回款编号列表
export function getFinanceCode(data) {
  return request({
    url: 'crm/expence/getFinanceCode',
    method: 'post',
    data: data
  })
}

// 保存报销单
export function saveExpence(data) {
  return request({
    url: 'crm/expence/add',
    method: 'post',
    data: data
  })
}

// 修改报销单
export function updateExpence(data) {
  return request({
    url: 'crm/expence/update',
    method: 'post',
    data: data
  })
}

// 详情报销单
export function detailExpence(data) {
  return request({
    url: 'crm/expence/detail',
    method: 'post',
    data: data
  })
}

// 导出报销单
export function exportExpence(data) {
  return request({
    url: 'crm/expence/export',
    method: 'post',
    data: data,
    responseType: 'blob',
    timeout: 600000
  })
}